﻿using System;
using System.Runtime.Serialization;

namespace USTF.Media.MediaService
{

    public class NewMediaItem : MediaItem, IEquatable<NewMediaItem>, IEquatable<MediaItem>
    {

        public Guid Identifier { get; set; }
        
        public NewMediaItem()
        {
            Identifier = Guid.NewGuid();
            ID = -1;
        }

        #region IEquatable<NewMediaItem> Members

        public bool Equals(NewMediaItem other)
        {
            return (other.Identifier == this.Identifier);
        }



        #endregion

        public bool Equals(MediaItem other)
        {
            if (other is NewMediaItem)
                return this.Equals(other as NewMediaItem);
            else return false;
        }
    }
}
